var JetSprite = cc.Sprite.extend({
    _currentRotation: 0,

    ctor: function () {
        this.initWithFile(s_JetSprite);
    },

    update: function (dt) {
        this.setRotation(this._currentRotation);
    },

    handleKey: function (e) {
        if (e === cc.KEY.left) {
            this._currentRotation-=2;
        }
        else if (e === cc.KEY.right) {
            this._currentRotation+=2;
        }

        if (this._currentRotation < 0) this._currentRotation = 360;
        if (this._currentRotation > 360) this._currentRotation = 0;
    }
});